#include "StdAfx.h"
#include "item.h"
#include "math.h"

Item::Item()
	: QGraphicsItem()
{
	setFlag(QGraphicsItem::ItemIsMovable, true);
	setFlag(QGraphicsItem::ItemIsSelectable, true);
	setFlag(ItemSendsGeometryChanges, true);

	pixmap = new QPixmap();
	bool v = pixmap->load("Images/Default.png");
}

Item::Item(QString FileName)
	: QGraphicsItem()
{
	setFlag(QGraphicsItem::ItemIsMovable, true);
	setFlag(QGraphicsItem::ItemIsSelectable, true);
	setFlag(ItemSendsGeometryChanges, true);
	
	QString fileName = FileName;

	pixmap = new QPixmap();
	pixmap->load(FileName);
}

Item::~Item()
{
	delete pixmap;
}